package users.michaelg.app;


import users.michaelg.beans.ConfigurationBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public final class SpringMainApp {

	/**
	 * Print the Spring-loaded {@code ConfigurationBean} object.
	 * 
	 * @param args
	 * 	not used
	 */
	public static void main(String[] args) {
		
		final ApplicationContext beans = new FileSystemXmlApplicationContext("C:\\VersionControl\\SpringBookClub\\SpringBookClub\\src\\users\\michaelg\\main.spring.xml");
		final ConfigurationBean config = beans.getBean("configuration", ConfigurationBean.class);
		System.out.println(config);

	}

}
